package com.xilihui.xlh.business.entities;


import com.xilihui.xlh.core.app.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * 2017/2/17.
 */
public class AreaEntity extends BaseEntity {


    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * id : 1
         * name : 北京市
         * level : 1
         * sub : [{"id":2,"name":"市辖区","level":2,"sub":[{"id":3,"name":"东城区","level":3},{"id":14,"name":"西城区","level":3},{"id":22,"name":"崇文区","level":3},{"id":30,"name":"宣武区","level":3},{"id":39,"name":"朝阳区","level":3},{"id":83,"name":"丰台区","level":3},{"id":105,"name":"石景山区","level":3},{"id":115,"name":"海淀区","level":3},{"id":145,"name":"门头沟区","level":3},{"id":159,"name":"房山区","level":3},{"id":188,"name":"通州区","level":3},{"id":204,"name":"顺义区","level":3},{"id":227,"name":"昌平区","level":3},{"id":245,"name":"大兴区","level":3},{"id":264,"name":"怀柔区","level":3},{"id":281,"name":"平谷区","level":3}]},{"id":300,"name":"县","level":2,"sub":[{"id":301,"name":"密云县","level":3},{"id":322,"name":"延庆县","level":3}]}]
         */

        private String id;
        private String name;
        private String level;
        private List<SubBeanX> sub;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public List<SubBeanX> getSub() {
            return sub;
        }

        public void setSub(List<SubBeanX> sub) {
            this.sub = sub;
        }

        public static class SubBeanX implements Serializable{
            /**
             * id : 2
             * name : 市辖区
             * level : 2
             * sub : [{"id":3,"name":"东城区","level":3},{"id":14,"name":"西城区","level":3},{"id":22,"name":"崇文区","level":3},{"id":30,"name":"宣武区","level":3},{"id":39,"name":"朝阳区","level":3},{"id":83,"name":"丰台区","level":3},{"id":105,"name":"石景山区","level":3},{"id":115,"name":"海淀区","level":3},{"id":145,"name":"门头沟区","level":3},{"id":159,"name":"房山区","level":3},{"id":188,"name":"通州区","level":3},{"id":204,"name":"顺义区","level":3},{"id":227,"name":"昌平区","level":3},{"id":245,"name":"大兴区","level":3},{"id":264,"name":"怀柔区","level":3},{"id":281,"name":"平谷区","level":3}]
             */

            private String id;
            private String name;
            private String level;
            private List<SubBean> sub;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public List<SubBean> getSub() {
                return sub;
            }

            public void setSub(List<SubBean> sub) {
                this.sub = sub;
            }

            public static class SubBean implements Serializable{
                /**
                 * id : 3
                 * name : 东城区
                 * level : 3
                 */

                private String id;
                private String name;
                private String level;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getLevel() {
                    return level;
                }

                public void setLevel(String level) {
                    this.level = level;
                }
            }
        }
    }
}
